package dto

import "admin-system-go/model"

type MenuBaseDTO struct {
	ParentId uint   `json:"parentId" form:"parentId"`
	Name     string `json:"name,omitempty" form:"name"`
	Intro    string `json:"intro,omitempty" form:"intro"`
	Route    string `json:"route" form:"route"`
	State    uint8  `json:"state" form:"state"`
	Icon     string `json:"icon" form:"icon"`
}

type MenuDelDTO struct {
	MenuIds []uint `json:"ids,omitempty" form:"ids"`
}

type MenuQueryDTO struct {
	model.Model
	model.PageQuery
	MenuBaseDTO
}

type MenuUpdateDTO struct {
	Id uint `json:"id"`
	MenuBaseDTO
}
